<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:41:"D:\www\crm/app/index\view\users\list.html";i:1518321430;s:35:"D:\www\crm/app/index\view\base.html";i:1512719636;}*/ ?>
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>山东归仁生物科技有限公司<?php echo HTRConf('CONF.appName'); ?></title>
<meta name="Keywords" content=""/>
<meta name="Description" content=""/> 
<link href="__INDEX__/js/ligerui/skins/Aqua/css/ligerui-all.css?v=<?php echo $v; ?>" rel="stylesheet" type="text/css" /> 
<link href="__STATIC__/plugins/validator/jquery.validator.css?v=<?php echo $v; ?>" rel="stylesheet">

<link href="__INDEX__/css/style.css?v=<?php echo $v; ?>" rel="stylesheet" type="text/css" />   
<script src="__STATIC__/js/jquery.min.js?v=<?php echo $v; ?>"></script>  
<script src="__INDEX__/js/ligerui/js/ligerui.all.js?v=<?php echo $v; ?>" type="text/javascript"></script> 
<script type='text/javascript' src='__STATIC__/plugins/layer/layer.js?v=<?php echo $v; ?>'></script> 
<script src="__STATIC__/js/common.js?v=<?php echo $v; ?>"></script>
<script>
window.conf = {"ROOT":"__ROOT__","APP":"__APP__","STATIC":"__STATIC__","SUFFIX":"<?php echo config('url_html_suffix'); ?>","USER_LOGO":"<?php echo HTRConf('CONF.userLogo'); ?>",'GRANT':'<?php echo implode(",",session("HTR_STAFF.privileges")); ?>'}
</script>
<script src="__INDEX__/js/common.js?v=<?php echo $v; ?>"></script>
<script type="text/javascript" src="__STATIC__/plugins/validator/jquery.validator.js?v=<?php echo $v; ?>"></script>
<script type="text/javascript" src="__STATIC__/plugins/validator/local/zh-CN.js?v=<?php echo $v; ?>"></script>
</head>
<body>

<div class="l-loading" style="display: block" id="htr-loading"></div>
<div class="htr-toolbar">	
   <?php if(HTRGrant('HYGL_01') && $staffRoleId < 3): ?>
   <button class="btn btn-green f-right" onclick="javascript:location.href='<?=url("users/toEdit")?>'">新增</button>
   <?php endif; ?>
  <div class='f-left'>  
        <div class='f-left tbr-m'>客户姓名:</div>
        <input type="text" name="user_name"  placeholder='客户姓名' id="user_name" class="query" />
        <div class='f-left tbr-m'>联系方式:</div>
        <input type="text" name="user_phone"  placeholder='联系方式' id="user_phone" class="query" />
        <div class='f-left tbr-m'>疾病类型:</div>
        <select id="diseaseId" name='diseaseId' class='query'>
          <option value="">-请选择-</option>    
          <?php if(is_array($diseaseList) || $diseaseList instanceof \think\Collection): $i = 0; $__LIST__ = $diseaseList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
          <option value="<?php echo $vo['diseaseId']; ?>"><?php echo $vo['diseaseName']; ?></option>
          <?php endforeach; endif; else: echo "" ;endif; ?>
        </select> 
        <div class='f-left tbr-m'>客户分类:</div>
        <select id="classifyId" name='classifyId' class='query'>
          <option value="">-请选择-</option>    
          <?php if(is_array($classifyList) || $classifyList instanceof \think\Collection): $i = 0; $__LIST__ = $classifyList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
          <option value="<?php echo $vo['classifyId']; ?>"><?php echo $vo['classifyName']; ?></option>
          <?php endforeach; endif; else: echo "" ;endif; ?>
        </select> 
        <div class='f-left tbr-m'>消费类型:</div>
        <select id="consume_type" name='consume_type' class='query'>
          <option value="">-请选择-</option>
          <option value="0">系统型</option>
          <option value="1">传统型</option>
          <option value="2">投资型</option>
        </select>     
        <div class='f-left tbr-m'>客户类型:</div>
        <select id="type" name='type' class='query'>
          <option value="">-请选择-</option>
          <option value="0">客户转介绍</option>
          <option value="1">业务扁平开发</option>
        </select>     
	   		<input type="button" class="btn btn-blue" onclick="javascript:userQuery()" value="查询">
        <button class="btn btn-red" onclick="javascript:location.href='<?=url("statistics")?>'">柱状图</button>
      </div>
      <div class='f-left'>  
        <div class='f-left tbr-m'>退休单位:</div>
        <input type="text" name="retirement_unit"  placeholder='退休单位' id="retirement_unit" class="query" />
        <div class='f-left tbr-m'>银行卡号:</div>
        <input type="text" name="bank_code"  placeholder='银行卡号' id="bank_code" class="query" />
        <div class='f-left tbr-m'>身份证号:</div>
        <input type="text" name="identity_card"  placeholder='身份证号' id="identity_card" class="query" />
        <div class='f-left tbr-m'>初次消费时间：</div>
        <input type="text" style="margin:0px;vertical-align:baseline;" id="startDate" name="startDate" class="query" maxLength="20"  />
        <div class='f-left tbr-m'>至</div>
        <input type="text" style="margin:0px;vertical-align:baseline;" id="endDate" name="endDate" class="query" maxLength="20"  />
      </div>
	</div>

   <div style="clear:both"></div>
</div>
<div id="maingrid"></div>
<div id='integralBox' style='display:none'>
  <form id='integralForm' autocomplete="off">
  <table class='htr-form htr-box-top'>
     <tr>
        <th width='100'>类型<font color='red'>*</font>：</th>
        <td height='24'>
           <label>
              <input type="radio" id="type1" name="type" class="ipt" value="1" checked>添加
           </label>
           <label>
              <input type="radio" id="type0" name="type" class="ipt" value="0">减少
           </label>
        </td>
     </tr>
     <tr>
        <th>数量<font color='red'>*</font>：</th>
        <td><input type='text' id='num' name="num" class='ipt' placeholder='数量' /></td>
     </tr>
     <tr>
        <th>描述<font color='red'>*</font>：</th>
        <td><textarea type='text' id='desc' name="desc" class='ipt' style="width:200px;height:50px;" placeholder='填写描述'></textarea></td>
     </tr>
  </table>
  </form>
</div>
<script>
  $(function(){initGrid(<?php echo $staffRoleId; ?>)});
</script>


<script src="__INDEX__/users/users.js?v=<?php echo $v; ?>" type="text/javascript"></script>

<script>
function showImg(opt){
	layer.photos(opt);
}
function showBox(opts){
	return HTR.open(opts);
}
</script>
</body>
</html>